<template>
  <div>
    <!-- 原创 出版导航栏 -->
    <div id="navbar">
      <div class="db-second">
        <div class="db-second-inner clearfix container">
            <!-- 两个导航栏 -->
          <div class="db-second-left nav nav-tabs float-left">
              <a href="#show1" class="nav-link active show a1" data-toggle="tab">原创</a>
              <router-link href="#show2" class="nav-link a2" data-toggle="tab" to="/publish">出版</router-link>
          </div>
          <!-- 开通会员栏 -->
          <div class="db-second-right float-right">
              <img :src="src" alt="">
              <span>开通会员，免费看书，享专享福利</span>
              <span>去开通</span>
              <img :src="src1" alt="">
          </div>
        </div>
      </div>
    </div>  
  </div>
</template>

<script>
export default {
  data() {
    return {
      src:'/image/icon-vip.svg',
      src1:'/image/icon-arrow-right-blueblack.svg'
    }
  },
}
</script>

<style scoped>
  .db-second {
  width: 100%;
  padding: 5px 0px;
  background-color: #F8F9F9; }
  .db-second .db-second-inner {
    width: 100%;
    margin: 25px auto; }
    .db-second .db-second-inner .db-second-left a {
      width: 75px;
      height: 35px;
      color: #333333;
      font-size: 15px;
      line-height: 35px;
      background-color: #ffffff;
      text-decoration: none;
      padding: 0px 20px;
      margin-right: 10px;
      border-radius: 3px;
      box-shadow: 1px 1px 1px #eee;
      border: none;
      position: relative; }
    .db-second .db-second-inner .db-second-left .a1 {
      background-color: #389eac;
      color: #ffffff; }
    .db-second .db-second-inner .db-second-left a:hover::after{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 75px;
      height: 35px;
      background-color: rgba(0, 0, 0, 0.05);
    }
    .db-second .db-second-inner .db-second-left .a2:hover{
      background-color: #389eac;
       color: #ffffff;
    }
    .db-second .db-second-inner .db-second-left {
      border: none;
    }
    .db-second .db-second-inner .db-second-right {
      width: 270px;
      font-size: 12px;
      line-height: 30px;
      background-color: #F4EFE7;
      padding: 2px 4px;
      border-radius: 5px;
      box-shadow: 4px 4px 2px #ccc; }
      .db-second .db-second-inner .db-second-right img {
        width: 18px;
        height: 13px; }

</style>